<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <h2>Index</h2>
  <iframe id="frame" src="http://127.0.0.1:8080/" width="900" height="500" frameborder="0"></iframe>

  <script>
    // document.getElementById('frame').onload = function() {
    //   this.contentWindow.postMessage({name: '田总', age: 18}, 'http://127.0.0.1:8080/')
     
    //   window.onmessage = function(res) {
    //     console.log(res.data);
    //   }
    // }
  
    const num = 100
  </script>
</body>
</html>